package Message.Game
{
    import Framework.MQ.*;
    import Framework.Serialize.*;
    import Message.Public.*;

    public class SReplyMsg extends Object implements IMessageBase
    {
        public var applicant:SPublicMiniPlayer;
        public var replier:SPublicMiniPlayer;
        public var toPlayerId:int;
        public var result:int;
        public const _type:int = 12012;
        public static var _regist:SReplyMsg = new SReplyMsg(true);

        public function SReplyMsg(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            
        }

        public function getType() : int
        {
            return this._type;
        }

        public function clone() : IMessageBase
        {
            return new SReplyMsg();
        }

        public function __write(param1:SerializeStream) : void
        {
            this.applicant.__write(param1);
            this.replier.__write(param1);
            param1.writeInt(this.toPlayerId);
            param1.writeInt(this.result);
            
        }

        public function __read(param1:SerializeStream) : void
        {
            this.applicant = new SPublicMiniPlayer();
            this.applicant.__read(param1);
            this.replier = new SPublicMiniPlayer();
            this.replier.__read(param1);
            this.toPlayerId = param1.readInt();
            this.result = param1.readInt();
            
        }

    }
}
